#pragma once
#ifndef POSITION_H
#define POSITION_H

#pragma once
#ifndef POSITION_H
#define POSITION_H

#include<iostream>

class Position
{
private:
    double x;
    double y;
    
    friend class Vector_2D;
    friend class Body;
    friend class MultiBody;
public:
    Position();
    Position(double xcoor, double ycoor);

    friend Position operator+(const Position& obj1, const Position& obj2);
    friend Position operator-(const Position& obj1, const Position& obj2);
    Position operator=(const Position& obj);
    Position operator+=(const Position& obj);
    Position operator-=(const Position& obj);
    Position operator*(const double& num) const;
    friend bool operator==(const Position& obj1, const Position& obj2);
    friend bool operator!=(const Position& obj1, const Position& obj2);
    friend std::ostream& operator<<(std::ostream& output, Position obj);

    void setPos(double xcoor, double ycoor);

    ~Position();
};

#endif // POSITION_H

